/*******************************************************************************
* CSCI321 Major Project 2010 - University of Wollongong                        *
********************************************************************************
* Program:		WeaveEdit                                              *
* Authors:		Simon Allen (Student#: 3457527, Unix: sa655)           *
*			Scott Bellis (Student#: 3479110, Unix: sjb900)         *
*			Jason Benger (Student#: 3454137, Unix: jb960)          *
*			Timothy Newmarch (Student#: 3459263 Unix: tgn336)      *
*			Benjamin Richardson (Student# 3467752, Unix: bjr401)   *
* Supervisor:		Daniel F. Saffioti                                     *
* Modified:		28/10/2010                                             *
* Description:		WeaveEdit is a highly portable collaborative text      *
*			editor and word processor, allowing several users to   *
*			read and edit multiple documents at the same time.     *
*			It is available for Mac OS X, Windows and Linux,       *
*			utilising Nokia's Qt development framework.            *
*******************************************************************************/


#ifndef CONSTANTS_H
#define CONSTANTS_H


const char PROGRAM_NAME[] = "WeaveEdit";
const char PROGRAM_LOGO[] = "logo location here"; /**< Location of program logo. */
const char WEBSITE_HOME[] = "http://www.weaveedit.com"; /**< Location of website homepage. */
const char FORMATTED_FILE_EXT[] = ".wef"; /**< Extension of formatted files. */
const char SESSION_FILE_EXT[] = ".wes"; /**< Extension of session files. */
const char BONJOUR_PROTOCOL[] = "_weaveedit._tcp";
const int DEFAULT_PORT = 9742;		/**< Default port for connecting to a WeaveServer */

const char PROGRAM_VERSION[] = "1.0"; /**< Version of program. */

enum FILE_TYPE {TEXT_FILE, FORMATTED_FILE}; /**< Listing of supported file types. */

const char SUPPORTED_SESSION_FILE_FILTER[] = "WeaveEdit session (*.wes)";
const char SUPPORTED_FORMATTED_FILE_FILTER[] = "All files (*);;WeaveEdit format (*.wef)";
const char SUPPORTED_TEXT_FILE_FILTER[] = "All files (*);;Text file (*.txt);;C source (*.c);;"
					  "C++ source (*.cpp);;C/C++ header (*.h);;"
					  "Python source (*.py);;Java source (*.java);;"
					  "HTML markup (*.htm *.html)";

const char CMD_ARG_HELP[] = "--help";
const char CMD_ARG_VERSION[] = "--version";

//defaults for preferences:
const int DEFAULT_TAB_WIDTH = 4;
const int DEFAULT_WORD_COMPLETION_LENGTH = 4;
const int DEFAULT_RIGHT_MARGIN = 50;
const int DEFAULT_FONT_SIZE = 12;
const bool DEFAULT_CHAR_MATCHING_ENABLED = true;
const bool DEFAULT_AUTO_COMPLETE_ENABLED = true;
const bool DEFAULT_RIGHT_MARGIN_ENABLED = true;
const bool DEFAULT_USE_SYSTEM_FONTS = true;


#endif // CONSTANTS_H
